home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 7_docs / Serial_numbers < prev    next >
Encoding:
Text File  |  2001-03-21  |  928 b   |  27 lines

  1. Using Hooks with Serial Numbers                                             
  2.  
  3. One of the neat things about ON hooks is that multiple hooks of the same
  4. type may be given different priorities.  A serial number may be any number,
  5. positive or negative; zero is the default and should not be used directly.
  6. The numbers themselves don't really matter, rather their relation to other
  7. serial numbers is what's important.  For example:
  8.  
  9.    on   hook    "*" echo foobar
  10.    on #-hook -5 "*" echo booya
  11.    on #-hook  5 "*" echo yadda yadda yadda
  12.  
  13. Then, when any HOOK command is issued, the following three lines will be
  14. displayed, in this order:
  15.  
  16.    booya
  17.    foobar
  18.    yadda yadda yadda
  19.  
  20. In general, it is always advisable to use serial numbers, if for no other
  21. reason than to prevent hooks from conflicting with each other.  This is
  22. particularly true of the TIMER hook, which should always use serial numbers.
  23.  
  24. See Also:
  25.    on(5)
  26.  
  27.